package com.smart.order.reqeust;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class UserRequestParams {
    @NotNull(message = "用户ID不能为空")
    private Integer uid;
    @Pattern(regexp = "^[a-zA-Z]\\w{7,16}$", message = "用户密码不符合规则")
    private String username;
    @Pattern(regexp = "^[A-Z]\\w{7,16}$", message = "密码不符合规则")
    private String password;
    @Pattern(regexp = "^1[3-9][0-9]{9}]", message = "请输入正确的手机号")
    private String phone;
    private String email;
}
